package net.wanho.controller;

import lombok.RequiredArgsConstructor;
import net.wanho.service.SupplyService;
import net.wanho.vo.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequiredArgsConstructor
@RequestMapping("/supply")
public class SupplyController {
    private final SupplyService supplyService;
    @GetMapping("/supply-list")
    public R supplyList(){
        return R.success(supplyService.list());
    }
}
